﻿Public Class USUARIO
    Private Sub USUARIO_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.LOGINTableAdapter.Fill(Me.LOGINDataSet.LOGIN)
    End Sub
    Private Sub Button1_Click_1(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        OpenFileDialog1.ShowDialog()
        ASSINATURATextBox.Text = OpenFileDialog1.FileName
    End Sub

    Private Sub Button2_Click_1(sender As System.Object, e As System.EventArgs) Handles Button2.Click
        Me.LOGINTableAdapter.Fill(Me.LOGINDataSet.LOGIN)
    End Sub

    Private Sub SALVAR_Click_1(sender As System.Object, e As System.EventArgs) Handles SALVAR.Click
        Me.Validate()
        Me.LOGINBindingSource1.EndEdit()
        Me.TableAdapterManager.UpdateAll(Me.LOGINDataSet)
    End Sub

    Private Sub PRIMEIRO_Click_1(sender As System.Object, e As System.EventArgs) Handles PRIMEIRO.Click
        LOGINBindingSource1.MoveFirst()
    End Sub

    Private Sub VOLTAR_Click(sender As System.Object, e As System.EventArgs) Handles VOLTAR.Click
        LOGINBindingSource1.MovePrevious()
    End Sub

    Private Sub NOVO_Click(sender As System.Object, e As System.EventArgs) Handles NOVO.Click
        LOGINBindingSource1.AddNew()
    End Sub

    Private Sub FRENTE_Click(sender As System.Object, e As System.EventArgs) Handles FRENTE.Click
        LOGINBindingSource1.MoveNext()
    End Sub

    Private Sub ULTIMO_Click(sender As System.Object, e As System.EventArgs) Handles ULTIMO.Click
        LOGINBindingSource1.MoveLast()
    End Sub

    Private Sub DELETAR_Click(sender As System.Object, e As System.EventArgs) Handles DELETAR.Click
        Me.Validate()
        LOGINBindingSource1.RemoveCurrent()
        LOGINTableAdapter.Update(LOGINDataSet.LOGIN)
    End Sub
End Class